import request from '../../utils/request';

// 签到配置管理相关 API

// 保存签到配置
export const saveSigninConfig = (data: any) => {
    return request({
        url: '/system/api/signin-config/save',
        method: 'post',
        data
    });
};

// 根据天数获取签到积分
export const getSigninPointsByDay = (day: number) => {
    return request({
        url: `/system/api/signin-config/points/${day}`,
        method: 'get'
    });
};

// 获取签到配置
export const getSigninConfig = () => {
    return request({
        url: '/system/api/signin-config/get',
        method: 'get'
    });
};
